package com.dx.common.table.ppt;

/**
 * Bis_path_swhId entity. @author MyEclipse Persistence Tools
 */

public class Bis_path_swhId implements java.io.Serializable {

	// Fields

	private String fr_path_id_fk;
	private String fr_path_ver_fk;
	private String fr_ope_no_fk;
	private String swh_id;
	private String swh_typ;

	// Constructors

	/** default constructor */
	public Bis_path_swhId() {
	}

	/** full constructor */
	public Bis_path_swhId(String fr_path_id_fk, String fr_path_ver_fk,
			String fr_ope_no_fk, String swh_id, String swh_typ) {
		this.fr_path_id_fk = fr_path_id_fk;
		this.fr_path_ver_fk = fr_path_ver_fk;
		this.fr_ope_no_fk = fr_ope_no_fk;
		this.swh_id = swh_id;
		this.swh_typ = swh_typ;
	}

	// Property accessors

	public String getFr_path_id_fk() {
		return this.fr_path_id_fk;
	}

	public void setFr_path_id_fk(String fr_path_id_fk) {
		this.fr_path_id_fk = fr_path_id_fk;
	}

	public String getFr_path_ver_fk() {
		return this.fr_path_ver_fk;
	}

	public void setFr_path_ver_fk(String fr_path_ver_fk) {
		this.fr_path_ver_fk = fr_path_ver_fk;
	}

	public String getFr_ope_no_fk() {
		return this.fr_ope_no_fk;
	}

	public void setFr_ope_no_fk(String fr_ope_no_fk) {
		this.fr_ope_no_fk = fr_ope_no_fk;
	}

	public String getSwh_id() {
		return this.swh_id;
	}

	public void setSwh_id(String swh_id) {
		this.swh_id = swh_id;
	}

	public String getSwh_typ() {
		return this.swh_typ;
	}

	public void setSwh_typ(String swh_typ) {
		this.swh_typ = swh_typ;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bis_path_swhId))
			return false;
		Bis_path_swhId castOther = (Bis_path_swhId) other;

		return ((this.getFr_path_id_fk() == castOther.getFr_path_id_fk()) || (this
				.getFr_path_id_fk() != null
				&& castOther.getFr_path_id_fk() != null && this
				.getFr_path_id_fk().equals(castOther.getFr_path_id_fk())))
				&& ((this.getFr_path_ver_fk() == castOther.getFr_path_ver_fk()) || (this
						.getFr_path_ver_fk() != null
						&& castOther.getFr_path_ver_fk() != null && this
						.getFr_path_ver_fk().equals(
								castOther.getFr_path_ver_fk())))
				&& ((this.getFr_ope_no_fk() == castOther.getFr_ope_no_fk()) || (this
						.getFr_ope_no_fk() != null
						&& castOther.getFr_ope_no_fk() != null && this
						.getFr_ope_no_fk().equals(castOther.getFr_ope_no_fk())))
				&& ((this.getSwh_id() == castOther.getSwh_id()) || (this
						.getSwh_id() != null && castOther.getSwh_id() != null && this
						.getSwh_id().equals(castOther.getSwh_id())))
				&& ((this.getSwh_typ() == castOther.getSwh_typ()) || (this
						.getSwh_typ() != null && castOther.getSwh_typ() != null && this
						.getSwh_typ().equals(castOther.getSwh_typ())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getFr_path_id_fk() == null ? 0 : this.getFr_path_id_fk()
						.hashCode());
		result = 37
				* result
				+ (getFr_path_ver_fk() == null ? 0 : this.getFr_path_ver_fk()
						.hashCode());
		result = 37
				* result
				+ (getFr_ope_no_fk() == null ? 0 : this.getFr_ope_no_fk()
						.hashCode());
		result = 37 * result
				+ (getSwh_id() == null ? 0 : this.getSwh_id().hashCode());
		result = 37 * result
				+ (getSwh_typ() == null ? 0 : this.getSwh_typ().hashCode());
		return result;
	}

	@Override
	public String toString() {
		return "Bis_path_swhId [fr_path_id_fk=" + fr_path_id_fk
				+ ", fr_path_ver_fk=" + fr_path_ver_fk + ", fr_ope_no_fk="
				+ fr_ope_no_fk + ", swh_id=" + swh_id + ", swh_typ=" + swh_typ
				+ "]";
	}

}